import 'package:acgn_pioneer/components/toast_component.dart';
import 'package:acgn_pioneer/models/base_config.dart';
import 'package:event_bus/event_bus.dart';
import 'package:flutter/widgets.dart';
import 'package:fluro/fluro.dart';
import '../api/_index.dart';

/// 全局顶层引用
class ACGN {
  static EventBus event; // 事件句柄
  static BaseConfig config; // 远程获取配置
  static FluroRouter router; // 路由句柄
  static HttpManager http; // 请求句柄
  static Map<String, String> apiKeys; // 请求url配置
  static AcgnToast toast; // 全局弹窗提示
  static GlobalKey<NavigatorState> navGK; // 导航state句柄
  static RouteObserver<PageRoute> routeObserver = RouteObserver<PageRoute>();
  static String accessToken;
}
